home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / g_quake / kuaqe.zip / DEFS.QC < prev    next >
Text File  |  1996-09-29  |  19KB  |  709 lines

  1.  
  2. /*
  3. ==============================================================================
  4.  
  5.             SOURCE FOR GLOBALVARS_T C STRUCTURE
  6.  
  7. ==============================================================================
  8. */
  9.  
  10. //
  11. // system globals
  12. //
  13. entity        self;
  14. entity        other;
  15. entity        world;
  16. float        time;
  17. float        frametime;
  18.  
  19. float        force_retouch;        // force all entities to touch triggers
  20.                                 // next frame.  this is needed because
  21.                                 // non-moving things don't normally scan
  22.                                 // for triggers, and when a trigger is
  23.                                 // created (like a teleport trigger), it
  24.                                 // needs to catch everything.
  25.                                 // decremented each frame, so set to 2
  26.                                 // to guarantee everything is touched
  27. string        mapname;
  28.  
  29. float        deathmatch;
  30. float        coop;
  31. float        teamplay;
  32.  
  33. float        serverflags;        // propagated from level to level, used to
  34.                                 // keep track of completed episodes
  35.  
  36. float        total_secrets;
  37. float        total_monsters;
  38.  
  39. float        found_secrets;        // number of secrets found
  40. float        killed_monsters;    // number of monsters killed
  41.  
  42.  
  43. // spawnparms are used to encode information about clients across server
  44. // level changes
  45. float           parm1,
  46.                 parm2,
  47.                 parm3,
  48.                 parm4,
  49.                 parm5,
  50.                 parm6,
  51.                 parm7,
  52.                 parm8,
  53.                 parm9,
  54.                 parm10, //used for chasecam, laser, and footsteps
  55.                 parm11,
  56.                 parm12,
  57.                 parm13,
  58.                 parm14,
  59.                 parm15,
  60.                 parm16;
  61.  
  62. //
  63. // global variables set by built in functions
  64. //    
  65. vector        v_forward, v_up, v_right;    // set by makevectors()
  66.     
  67. // set by traceline / tracebox
  68. float        trace_allsolid;
  69. float        trace_startsolid;
  70. float        trace_fraction;
  71. vector        trace_endpos;
  72. vector        trace_plane_normal;
  73. float        trace_plane_dist;
  74. entity        trace_ent;
  75. float        trace_inopen;
  76. float        trace_inwater;
  77.  
  78. entity        msg_entity;                // destination of single entity writes
  79.  
  80. //
  81. // required prog functions
  82. //
  83. void()         main;                        // only for testing
  84.  
  85. void()        StartFrame;
  86.  
  87. void()         PlayerPreThink;
  88. void()         PlayerPostThink;
  89.  
  90. void()        ClientKill;
  91. void()        ClientConnect;
  92. void()         PutClientInServer;        // call after setting the parm1... parms
  93. void()        ClientDisconnect;
  94.  
  95. void()        SetNewParms;            // called when a client first connects to
  96.                                     // a server. sets parms so they can be
  97.                                     // saved off for restarts
  98.  
  99. void()        SetChangeParms;            // call to set parms for self so they can
  100.                                     // be saved for a level transition
  101.  
  102.  
  103. //================================================
  104. void        end_sys_globals;        // flag for structure dumping
  105. //================================================
  106.  
  107. /*
  108. ==============================================================================
  109.  
  110.             SOURCE FOR ENTVARS_T C STRUCTURE
  111.  
  112. ==============================================================================
  113. */
  114.  
  115. //
  116. // system fields (*** = do not set in prog code, maintained by C code)
  117. //
  118. .float        modelindex;        // *** model index in the precached list
  119. .vector        absmin, absmax;    // *** origin + mins / maxs
  120.  
  121. .float        ltime;            // local time for entity
  122. .float        movetype;
  123. .float        solid;
  124.  
  125. .vector        origin;            // ***
  126. .vector        oldorigin;        // ***
  127. .vector        velocity;
  128. .vector        angles;
  129. .vector        avelocity;
  130.  
  131. .vector        punchangle;        // temp angle adjust from damage or recoil
  132.  
  133. .string        classname;        // spawn function
  134. .string        model;
  135. .float        frame;
  136. .float        skin;
  137. .float        effects;
  138.  
  139. .vector        mins, maxs;        // bounding box extents reletive to origin
  140. .vector        size;            // maxs - mins
  141.  
  142. .void()        touch;
  143. .void()        use;
  144. .void()        think;
  145. .void()        blocked;        // for doors or plats, called when can't push other
  146.  
  147. .float        nextthink;
  148. .entity        groundentity;
  149.  
  150. // stats
  151. .float        health;
  152. .float        frags;
  153. .float        weapon;            // one of the IT_SHOTGUN, etc flags
  154. .string        weaponmodel;
  155. .float        weaponframe;
  156. .float        currentammo;
  157. .float        ammo_shells, ammo_nails, ammo_rockets, ammo_cells;
  158.  
  159. .float        items;            // bit flags
  160.  
  161. .float        takedamage;
  162. .entity        chain;
  163. .float        deadflag;
  164.  
  165. .vector        view_ofs;            // add to origin to get eye point
  166.  
  167.  
  168. .float        button0;        // fire
  169. .float        button1;        // use
  170. .float        button2;        // jump
  171.  
  172. .float        impulse;        // weapon changes
  173.  
  174. .float        fixangle;
  175. .vector        v_angle;        // view / targeting angle for players
  176. .float        idealpitch;        // calculated pitch angle for lookup up slopes
  177.  
  178.  
  179. .string        netname;
  180.  
  181. .entity     enemy;
  182.  
  183. .float        flags;
  184.  
  185. .float        colormap;
  186. .float        team;
  187.  
  188. .float        max_health;        // players maximum health is stored here
  189.  
  190. .float        teleport_time;    // don't back up
  191.  
  192. .float        armortype;        // save this fraction of incoming damage
  193. .float        armorvalue;
  194.  
  195. .float        waterlevel;        // 0 = not in, 1 = feet, 2 = wast, 3 = eyes
  196. .float        watertype;        // a contents value
  197.  
  198. .float        ideal_yaw;
  199. .float        yaw_speed;
  200.  
  201. .entity        aiment;
  202.  
  203. .entity     goalentity;        // a movetarget or an enemy
  204.  
  205. .float        spawnflags;
  206.  
  207. .string        target;
  208. .string        targetname;
  209.  
  210. // damage is accumulated through a frame. and sent as one single
  211. // message, so the super shotgun doesn't generate huge messages
  212. .float        dmg_take;
  213. .float        dmg_save;
  214. .entity        dmg_inflictor;
  215.  
  216. .entity        owner;        // who launched a missile
  217. .vector        movedir;    // mostly for doors, but also used for waterjump
  218.  
  219. .string        message;        // trigger messages
  220.  
  221. .float        sounds;        // either a cd track number or sound number
  222.  
  223. .string        noise, noise1, noise2, noise3;    // contains names of wavs to play
  224.  
  225. //================================================
  226. void        end_sys_fields;            // flag for structure dumping
  227. //================================================
  228.  
  229. /*
  230. ==============================================================================
  231.  
  232.                 VARS NOT REFERENCED BY C CODE
  233.  
  234. ==============================================================================
  235. */
  236.  
  237.  
  238. //
  239. // constants
  240. //
  241.  
  242. float    FALSE                    = 0;
  243. float     TRUE                    = 1;
  244.  
  245. // edict.flags
  246. float    FL_FLY                    = 1;
  247. float    FL_SWIM                    = 2;
  248. float    FL_CLIENT                = 8;    // set for all client edicts
  249. float    FL_INWATER                = 16;    // for enter / leave water splash
  250. float    FL_MONSTER                = 32;
  251. float    FL_GODMODE                = 64;    // player cheat
  252. float    FL_NOTARGET                = 128;    // player cheat
  253. float    FL_ITEM                    = 256;    // extra wide size for bonus items
  254. float    FL_ONGROUND                = 512;    // standing on something
  255. float    FL_PARTIALGROUND        = 1024;    // not all corners are valid
  256. float    FL_WATERJUMP            = 2048;    // player jumping out of water
  257. float    FL_JUMPRELEASED            = 4096;    // for jump debouncing
  258.  
  259. // edict.movetype values
  260. float    MOVETYPE_NONE            = 0;    // never moves
  261. //float    MOVETYPE_ANGLENOCLIP    = 1;
  262. //float    MOVETYPE_ANGLECLIP        = 2;
  263. float    MOVETYPE_WALK            = 3;    // players only
  264. float    MOVETYPE_STEP            = 4;    // discrete, not real time unless fall
  265. float    MOVETYPE_FLY            = 5;
  266. float    MOVETYPE_TOSS            = 6;    // gravity
  267. float    MOVETYPE_PUSH            = 7;    // no clip to world, push and crush
  268. float    MOVETYPE_NOCLIP            = 8;
  269. float    MOVETYPE_FLYMISSILE        = 9;    // fly with extra size against monsters
  270. float    MOVETYPE_BOUNCE            = 10;
  271. float    MOVETYPE_BOUNCEMISSILE    = 11;    // bounce with extra size
  272.  
  273. // edict.solid values
  274. float    SOLID_NOT                = 0;    // no interaction with other objects
  275. float    SOLID_TRIGGER            = 1;    // touch on edge, but not blocking
  276. float    SOLID_BBOX                = 2;    // touch on edge, block
  277. float    SOLID_SLIDEBOX            = 3;    // touch on edge, but not an onground
  278. float    SOLID_BSP                = 4;    // bsp clip, touch on edge, block
  279.  
  280. // range values
  281. float    RANGE_MELEE                = 0;
  282. float    RANGE_NEAR                = 1;
  283. float    RANGE_MID                = 2;
  284. float    RANGE_FAR                = 3;
  285.  
  286. // deadflag values
  287.  
  288. float    DEAD_NO                    = 0;
  289. float    DEAD_DYING                = 1;
  290. float    DEAD_DEAD                = 2;
  291. float    DEAD_RESPAWNABLE        = 3;
  292.  
  293. // takedamage values
  294.  
  295. float    DAMAGE_NO                = 0;
  296. float    DAMAGE_YES                = 1;
  297. float    DAMAGE_AIM                = 2;
  298.  
  299. // items
  300. float    IT_AXE                    = 4096;
  301. float    IT_SHOTGUN                = 1;
  302. float    IT_SUPER_SHOTGUN        = 2;
  303. float    IT_NAILGUN                = 4;
  304. float    IT_SUPER_NAILGUN        = 8;
  305. float    IT_GRENADE_LAUNCHER        = 16;
  306. float    IT_ROCKET_LAUNCHER        = 32;
  307. float    IT_LIGHTNING            = 64;
  308. float    IT_EXTRA_WEAPON            = 128;
  309.  
  310. float    IT_SHELLS                = 256;
  311. float    IT_NAILS                = 512;
  312. float    IT_ROCKETS                = 1024;
  313. float    IT_CELLS                = 2048;
  314.  
  315. float    IT_ARMOR1                = 8192;
  316. float    IT_ARMOR2                = 16384;
  317. float    IT_ARMOR3                = 32768;
  318. float    IT_SUPERHEALTH            = 65536;
  319.  
  320. float    IT_KEY1                    = 131072;
  321. float    IT_KEY2                    = 262144;
  322.  
  323. float    IT_INVISIBILITY            = 524288;
  324. float    IT_INVULNERABILITY        = 1048576;
  325. float    IT_SUIT                    = 2097152;
  326. float    IT_QUAD                    = 4194304;
  327.  
  328. // point content values
  329.  
  330. float   CONTENT_EMPTY                   = -1;
  331. float   CONTENT_SOLID                   = -2;
  332. float   CONTENT_WATER                   = -3;
  333. float   CONTENT_SLIME                   = -4;
  334. float   CONTENT_LAVA                    = -5;
  335. float   CONTENT_SKY                             = -6;
  336.  
  337. float    STATE_TOP        = 0;
  338. float    STATE_BOTTOM    = 1;
  339. float    STATE_UP        = 2;
  340. float    STATE_DOWN        = 3;
  341.  
  342. vector    VEC_ORIGIN = '0 0 0';
  343. vector    VEC_HULL_MIN = '-16 -16 -24';
  344. vector    VEC_HULL_MAX = '16 16 32';
  345.  
  346. vector    VEC_HULL2_MIN = '-32 -32 -24';
  347. vector    VEC_HULL2_MAX = '32 32 64';
  348.  
  349. // protocol bytes
  350. float    SVC_TEMPENTITY        = 23;
  351. float    SVC_KILLEDMONSTER    = 27;
  352. float    SVC_FOUNDSECRET        = 28;
  353. float    SVC_INTERMISSION    = 30;
  354. float    SVC_FINALE            = 31;
  355. float    SVC_CDTRACK            = 32;
  356. float    SVC_SELLSCREEN        = 33;
  357.  
  358.  
  359. float    TE_SPIKE        = 0;
  360. float    TE_SUPERSPIKE    = 1;
  361. float    TE_GUNSHOT        = 2;
  362. float    TE_EXPLOSION    = 3;
  363. float    TE_TAREXPLOSION    = 4;
  364. float    TE_LIGHTNING1    = 5;
  365. float    TE_LIGHTNING2    = 6;
  366. float    TE_WIZSPIKE        = 7;
  367. float    TE_KNIGHTSPIKE    = 8;
  368. float    TE_LIGHTNING3    = 9;
  369. float    TE_LAVASPLASH    = 10;
  370. float    TE_TELEPORT        = 11;
  371.  
  372. // sound channels
  373. // channel 0 never willingly overrides
  374. // other channels (1-7) allways override a playing sound on that channel
  375. float    CHAN_AUTO        = 0;
  376. float    CHAN_WEAPON        = 1;
  377. float    CHAN_VOICE        = 2;
  378. float    CHAN_ITEM        = 3;
  379. float    CHAN_BODY        = 4;
  380.  
  381. float    ATTN_NONE        = 0;
  382. float    ATTN_NORM        = 1;
  383. float    ATTN_IDLE        = 2;
  384. float    ATTN_STATIC        = 3;
  385.  
  386. // update types
  387.  
  388. float    UPDATE_GENERAL    = 0;
  389. float    UPDATE_STATIC    = 1;
  390. float    UPDATE_BINARY    = 2;
  391. float    UPDATE_TEMP        = 3;
  392.  
  393. // entity effects
  394.  
  395. float    EF_BRIGHTFIELD    = 1;
  396. float    EF_MUZZLEFLASH     = 2;
  397. float    EF_BRIGHTLIGHT     = 4;
  398. float    EF_DIMLIGHT     = 8;
  399.  
  400.  
  401. // messages
  402. float    MSG_BROADCAST    = 0;        // unreliable to all
  403. float    MSG_ONE            = 1;        // reliable to one (msg_entity)
  404. float    MSG_ALL            = 2;        // reliable to all
  405. float    MSG_INIT        = 3;        // write to the init string
  406.  
  407. //================================================
  408.  
  409. //
  410. // globals
  411. //
  412. float    movedist;
  413. float    gameover;        // set when a rule exits
  414.  
  415. string    string_null;    // null string, nothing should be held here
  416. float    empty_float;
  417.  
  418. entity    newmis;            // launch_spike sets this after spawning it
  419.  
  420. entity    activator;        // the entity that activated a trigger or brush
  421.  
  422. entity    damage_attacker;    // set by T_Damage
  423. float    framecount;
  424.  
  425. float        skill;
  426.  
  427. //================================================
  428.  
  429. //
  430. // world fields (FIXME: make globals)
  431. //
  432. .string        wad;
  433. .string     map;
  434. .float        worldtype;    // 0=medieval 1=metal 2=base
  435.  
  436. //================================================
  437.  
  438. .string        killtarget;
  439.  
  440. //
  441. // quakeed fields
  442. //
  443. .float        light_lev;        // not used by game, but parsed by light util
  444. .float        style;
  445.  
  446.  
  447. //
  448. // monster ai
  449. //
  450. .void()        th_stand;
  451. .void()        th_walk;
  452. .void()        th_run;
  453. .void()        th_missile;
  454. .void()        th_melee;
  455. .void(entity attacker, float damage)        th_pain;
  456. .void()        th_die;
  457.  
  458. .entity        oldenemy;        // mad at this player before taking damage
  459.  
  460. .float        speed;
  461.  
  462. .float    lefty;
  463.  
  464. .float    search_time;
  465. .float    attack_state;
  466.  
  467. float    AS_STRAIGHT        = 1;
  468. float    AS_SLIDING        = 2;
  469. float    AS_MELEE        = 3;
  470. float    AS_MISSILE        = 4;
  471.  
  472. //
  473. // player only fields
  474. //
  475. .float        walkframe;
  476.  
  477. .float         attack_finished;
  478. .float        pain_finished;
  479.  
  480. .float        invincible_finished;
  481. .float        invisible_finished;
  482. .float        super_damage_finished;
  483. .float        radsuit_finished;
  484.  
  485. .float        invincible_time, invincible_sound;
  486. .float        invisible_time, invisible_sound;
  487. .float        super_time, super_sound;
  488. .float        rad_time;
  489. .float        fly_sound;
  490.  
  491. .float        axhitme;
  492.  
  493. .float        show_hostile;    // set to time+0.2 whenever a client fires a
  494.                             // weapon or takes damage.  Used to alert
  495.                             // monsters that otherwise would let the player go
  496. .float        jump_flag;        // player jump flag
  497. .float        swim_flag;        // player swimming sound flag
  498. .float        air_finished;    // when time > air_finished, start drowning
  499. .float        bubble_count;    // keeps track of the number of bubbles
  500. .string        deathtype;        // keeps track of how the player died
  501.  
  502. //
  503. // object stuff
  504. //
  505. .string        mdl;
  506. .vector        mangle;            // angle at start
  507.  
  508. .vector        oldorigin;        // only used by secret door
  509.  
  510. .float        t_length, t_width;
  511.  
  512.  
  513. //
  514. // doors, etc
  515. //
  516. .vector        dest, dest1, dest2;
  517. .float        wait;            // time from firing to restarting
  518. .float        delay;            // time from activation to firing
  519. .entity        trigger_field;    // door's trigger entity
  520. .string        noise4;
  521.  
  522. //
  523. // monsters
  524. //
  525. .float         pausetime;
  526. .entity     movetarget;
  527.  
  528.  
  529. //
  530. // doors
  531. //
  532. .float        aflag;
  533. .float        dmg;            // damage done by door when hit
  534.     
  535. //
  536. // misc
  537. //
  538. .float        cnt;             // misc flag
  539.     
  540. //
  541. // subs
  542. //
  543. .void()        think1;
  544. .vector        finaldest, finalangle;
  545.  
  546. //
  547. // triggers
  548. //
  549. .float        count;            // for counting triggers
  550.  
  551.  
  552. //
  553. // plats / doors / buttons
  554. //
  555. .float        lip;
  556. .float        state;
  557. .vector        pos1, pos2;        // top and bottom positions
  558. .float        height;
  559.  
  560. //
  561. // sounds
  562. //
  563. .float        waitmin, waitmax;
  564. .float        distance;
  565. .float        volume;
  566.  
  567.  
  568.  
  569.  
  570. //===========================================================================
  571.     
  572.  
  573. //
  574. // builtin functions
  575. //
  576.  
  577. void(vector ang)    makevectors        = #1;        // sets v_forward, etc globals
  578. void(entity e, vector o) setorigin    = #2;
  579. void(entity e, string m) setmodel    = #3;        // set movetype and solid first
  580. void(entity e, vector min, vector max) setsize = #4;
  581. // #5 was removed
  582. void() break                        = #6;
  583. float() random                        = #7;        // returns 0 - 1
  584. void(entity e, float chan, string samp, float vol, float atten) sound = #8;
  585. vector(vector v) normalize            = #9;
  586. void(string e) error                = #10;
  587. void(string e) objerror                = #11;
  588. float(vector v) vlen                = #12;
  589. float(vector v) vectoyaw            = #13;
  590. entity() spawn                        = #14;
  591. void(entity e) remove                = #15;
  592.  
  593. // sets trace_* globals
  594. // nomonsters can be:
  595. // An entity will also be ignored for testing if forent == test,
  596. // forent->owner == test, or test->owner == forent
  597. // a forent of world is ignored
  598. void(vector v1, vector v2, float nomonsters, entity forent) traceline = #16;    
  599.  
  600. entity() checkclient                = #17;    // returns a client to look for
  601. entity(entity start, .string fld, string match) find = #18;
  602. string(string s) precache_sound        = #19;
  603. string(string s) precache_model        = #20;
  604. void(entity client, string s)stuffcmd = #21;
  605. entity(vector org, float rad) findradius = #22;
  606. void(string s) bprint                = #23;
  607. void(entity client, string s) sprint = #24;
  608. void(string s) dprint                = #25;
  609. string(float f) ftos                = #26;
  610. string(vector v) vtos                = #27;
  611. void() coredump                        = #28;        // prints all edicts
  612. void() traceon                        = #29;        // turns statment trace on
  613. void() traceoff                        = #30;
  614. void(entity e) eprint                = #31;        // prints an entire edict
  615. float(float yaw, float dist) walkmove    = #32;    // returns TRUE or FALSE
  616. // #33 was removed
  617. float(float yaw, float dist) droptofloor= #34;    // TRUE if landed on floor
  618. void(float style, string value) lightstyle = #35;
  619. float(float v) rint                    = #36;        // round to nearest int
  620. float(float v) floor                = #37;        // largest integer <= v
  621. float(float v) ceil                    = #38;        // smallest integer >= v
  622. // #39 was removed
  623. float(entity e) checkbottom            = #40;        // true if self is on ground
  624. float(vector v) pointcontents        = #41;        // returns a CONTENT_*
  625. // #42 was removed
  626. float(float f) fabs = #43;
  627. vector(entity e, float speed) aim = #44;        // returns the shooting vector
  628. float(string s) cvar = #45;                        // return cvar.value
  629. void(string s) localcmd = #46;                    // put string into local que
  630. entity(entity e) nextent = #47;                    // for looping through all ents
  631. void(vector o, vector d, float color, float count) particle = #48;// start a particle effect
  632. void() ChangeYaw = #49;                        // turn towards self.ideal_yaw
  633.                                             // at self.yaw_speed
  634. // #50 was removed
  635. vector(vector v) vectoangles            = #51;
  636.  
  637. //
  638. // direct client message generation
  639. //
  640. void(float to, float f) WriteByte        = #52;
  641. void(float to, float f) WriteChar        = #53;
  642. void(float to, float f) WriteShort        = #54;
  643. void(float to, float f) WriteLong        = #55;
  644. void(float to, float f) WriteCoord        = #56;
  645. void(float to, float f) WriteAngle        = #57;
  646. void(float to, string s) WriteString    = #58;
  647. void(float to, entity s) WriteEntity    = #59;
  648.  
  649. //
  650. // broadcast client message generation
  651. //
  652.  
  653. // void(float f) bWriteByte        = #59;
  654. // void(float f) bWriteChar        = #60;
  655. // void(float f) bWriteShort        = #61;
  656. // void(float f) bWriteLong        = #62;
  657. // void(float f) bWriteCoord        = #63;
  658. // void(float f) bWriteAngle        = #64;
  659. // void(string s) bWriteString    = #65;
  660. // void(entity e) bWriteEntity = #66;
  661.  
  662. void(float step) movetogoal                = #67;
  663.  
  664. string(string s) precache_file        = #68;    // no effect except for -copy
  665. void(entity e) makestatic        = #69;
  666. void(string s) changelevel = #70;
  667.  
  668. //#71 was removed
  669.  
  670. void(string var, string val) cvar_set = #72;    // sets cvar.value
  671.  
  672. void(entity client, string s) centerprint = #73;    // sprint, but in middle
  673.  
  674. void(vector pos, string samp, float vol, float atten) ambientsound = #74;
  675.  
  676. string(string s) precache_model2    = #75;        // registered version only
  677. string(string s) precache_sound2    = #76;        // registered version only
  678. string(string s) precache_file2        = #77;        // registered version only
  679.  
  680. void(entity e) setspawnparms        = #78;        // set parm1... to the
  681.                                                 // values at level start
  682.                                                 // for coop respawn
  683.  
  684. //============================================================================
  685.  
  686. //
  687. // subs.qc
  688. //
  689. void(vector tdest, float tspeed, void() func) SUB_CalcMove;
  690. void(entity ent, vector tdest, float tspeed, void() func) SUB_CalcMoveEnt;
  691. void(vector destangle, float tspeed, void() func) SUB_CalcAngleMove;
  692. void()  SUB_CalcMoveDone;
  693. void() SUB_CalcAngleMoveDone;
  694. void() SUB_Null;
  695. void() SUB_UseTargets;
  696. void() SUB_Remove;
  697.  
  698. //
  699. //    combat.qc
  700. //
  701. void(entity targ, entity inflictor, entity attacker, float damage) T_Damage;
  702.  
  703.  
  704. float (entity e, float healamount, float ignore) T_Heal; // health function
  705.  
  706. float(entity targ, entity inflictor) CanDamage;
  707.  
  708.  
  709.